﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Pedlar
    {
        ///<summary>
        ///武器NPC
        ///</summary>
        Weapon,
        ///<summary>
        ///材料NPC
        ///</summary>
        Materials,
        ///<summary>
        ///食物NPC
        ///</summary>
        Food

    }
    class PedlarNPC:NPC
    {
        public string pedlaritem;

        public override void Speack()
        {
            Console.WriteLine("哦豁，你终于来咯，走过路过不要错过，好东西都在这里耶，快来快来！");
            Console.WriteLine("NPC:{0},商品:{1}", base.name, this.pedlaritem);
        }
        public string Pedlaritem
        {
            get { return this.pedlaritem; }
            set { this.pedlaritem = value; }
        }
        public PedlarNPC(string name, NPCType type, string pedlaritem) : base(name, type)
        {
            this.pedlaritem = pedlaritem;
        }
    }
}
